<!-- eslint-disable vue/multi-word-component-names -->
<!-- eslint-disable vue/no-mutating-props -->
<template>
    <labelArea label="参数">
        <el-form size="small" inline label-suffix=" :">
            <el-form-item label="Goto 标记">
                <el-input v-model="config.mark"></el-input>
            </el-form-item>
            <el-form-item style="flex: 1;">
                <el-button>全部重命名...</el-button>
            </el-form-item>
            <el-form-item label="标记可见性">
                <el-select v-model="config.type">
                    <el-option label="按元素(K.*u)" value="rect"></el-option>
                    <el-option label="矩阵(K*u)" value="circle"></el-option>
                    <el-option label="矩阵(u*K)" value="circle"></el-option>
                    <el-option label="矩阵(K*u)（u 向量）" value="circle"></el-option>
                </el-select>
            </el-form-item>
        </el-form>
        <div class="qu">
            <div>
                <div>
                    对应的模块：
                </div>
                <div>
                    <span class="spanA" @click="config.upDate(config.mark)">
                        刷新
                    </span>
                </div>
            </div>
            <span v-for="im in config.FromArr" :key="im">
                <span class="spanA" @click="im.fn()">
                    {{ im.node.label }}
                </span>
            </span>
        </div>
        <el-form size="small" label-suffix=" :">
            <el-form-item label="图标显示">
                <el-select v-model="config.type">
                    <el-option label="按元素(K.*u)" value="rect"></el-option>
                    <el-option label="矩阵(K*u)" value="circle"></el-option>
                    <el-option label="矩阵(u*K)" value="circle"></el-option>
                    <el-option label="矩阵(K*u)（u 向量）" value="circle"></el-option>
                </el-select>
            </el-form-item>
        </el-form>
    </labelArea>
</template>

<script setup>
const { data, config } = defineProps(['data', 'config'])

</script>


<style scoped>
.qu {
    border: 1px solid #000;
    margin: 8px;
    padding: 4px 6px;
    display: flex;
    flex-direction: column;
    font-size: 12px;
    height: 200px;
    min-width: 300px;
    overflow-y: auto;

    &>div {
        display: flex;
        justify-content: space-between;
    }

    &>span {
        margin-left: 60px;
    }
}
</style>